package cn.village.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (VaUser)实体类
 *
 * @author makejava
 * @since 2021-02-02 10:50:41
 */
public class VaUser implements Serializable {
    private static final long serialVersionUID = 526620887480744292L;

    private Integer id;

    private String usercode;

    private String username;

    private String password;

    /*@DateTimeFormat(pattern = "yyyy-MM-dd")*/
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date creationdate;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date modifydate;

    private String modifyby;

    private Integer roleid;

    private VaRole vaRole;

    private String roleName;

    private String level;

    public VaRole getVaRole() {
        return vaRole;
    }

    public void setVaRole(VaRole vaRole) {
        this.vaRole = vaRole;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreationdate() {
        return creationdate;
    }

    public void setCreationdate(Date creationdate) {
        this.creationdate = creationdate;
    }

    public Date getModifydate() {
        return modifydate;
    }

    public void setModifydate(Date modifydate) {
        this.modifydate = modifydate;
    }

    public String getModifyby() {
        return modifyby;
    }

    public void setModifyby(String modifyby) {
        this.modifyby = modifyby;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    @Override
    public String toString() {
        return "VaUser{" +
                "id=" + id +
                ", usercode='" + usercode + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", creationdate=" + creationdate +
                ", modifydate=" + modifydate +
                ", modifyby='" + modifyby + '\'' +
                ", roleid=" + roleid +
                ", vaRole=" + vaRole +
                ", roleName='" + roleName + '\'' +
                ", level='" + level + '\'' +
                '}';
    }
}